-- GENERATED SPELL FOR [Arcanist Ardonis] --


function spell0_19830(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(33860,pUnit)
pUnit:RegisterEvent('Sorts_19830', 1500, 1)
end

function spell1_19830(pUnit, Event) --@Chain Fireball,n/a--
pUnit:FullCastSpellOnTarget(35853,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19830', 2500, 1)
end

function Sorts_19830(pUnit, Event)
local choix_sorts_19830 = math.random(0, 1)
if choix_sorts_19830 == 0 then
pUnit:RegisterEvent('spell0_19830', 1, 1)
end
if choix_sorts_19830 == 1 then
pUnit:RegisterEvent('spell1_19830', 1, 1)
end
end

function mob19830_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19830', math.random(1500, 3000), 1)
end

function mob19830_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19830_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19830_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19830, 1, 'mob19830_Action')
RegisterUnitEvent(19830, 2, 'mob19830_Leave')
RegisterUnitEvent(19830, 3, 'mob19830_Kill')
RegisterUnitEvent(19830, 4, 'mob19830_Die')
